package excel;

import java.io.File;

public class CheckCommon {
	public static String ROOT_PATH = "excel/";
	
	public static boolean CheckFileExist(String pathname) {
		File f = new File(pathname);
		return f.exists();
	}
	
	public static boolean CheckProbability(String v) {
		String[] vs = v.split("\\|");
		String t;
		int sum = 0;
		for (String s: vs) {
			t = s.substring(s.indexOf('/')+1);
			sum += Integer.parseInt(t);
		}
		return sum == 10000;
	}
}
